<?php

namespace App\Http\Models\Admin\CMS;

use Illuminate\Database\Eloquent\Model;

class PostPro extends Model
{
    //
    protected $table = 'post_pros';
    public $timestamps = false;



    public  static  function getConvertPro($request){
        $pros = PostPro::all();
        $result = array();
        if($pros){
            foreach($pros as $item){
                $result[$item->uid] = $request->input($item->uid);
            }
        }
//        var_dump($result);
       return serialize($result);
    }
}
